<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="pojo.Manager"  %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>The hotel System</title>
    <link rel="stylesheet" href="menu.css">
    <script src="menu.js"></script>
    <script src="../jquery-1.8.0.min.js"></script>
</head>
<body style="overflow: scroll;">
	<%
		String massage = (String)session.getAttribute("massage");
		if(massage == null || massage.equals("error") || !massage.equals("succeed")){
			System.out.println("ifnae");
			%>
				<jsp:forward page="login.jsp"/>
			<% 
			System.out.println("meitiao");
		}
		Manager manager = (Manager)session.getAttribute("inof");
	 %>
    <div class="totality">
        <div class="menuList">
            <div class="personInfo">
                <div class="headPortrait">
                    <img src="bg.jpg" alt="" width="80" height="80">
                </div>
                <div class="user">
                    <p class="userName" id = "userName"><%=manager.name %></p>
                    <form action="loginOutServlet" method="post">
                        <input type="submit" class="loggedOut" value="退出登陆">
                    </form>
                </div>
            </div>
            <div>
                <hr style="color: #f1f1f1; width: 100%;">
            </div>
            <div class="funclist">
                <ul class="funclistul">
                    <li onclick="chageRoomCondition()">实时房态</li>
                    <li onclick="register()">入住登陆</li>
                    <li onclick="selectInformation()">查询与更改</li>
                    <li onclick="checkOut()">续租与退房</li>
                </ul>
            </div>
        </div>
        <div class="allFunc">
            <iframe src="roomCondition.jsp"
            name="frame_content" id="frame_content" 
            scrolling="no"width="100%" ></iframe>
        </div>
    </div>
</body>
</html>